.class Lcom/xingbook/xingbook/activity/r;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/xingbook/xingbook/d/l;


# instance fields
.field final synthetic a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;


# direct methods
.method constructor <init>(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/xingbook/activity/r;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/xingbook/xingbook/b/a;)V
    .locals 3

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/xingbook/xingbook/activity/r;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    const-class v2, Lcom/xingbook/park/activity/OpenBookAct;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "com.xingbook.park.BOOK_ID"

    invoke-virtual {p1}, Lcom/xingbook/xingbook/b/a;->t()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "com.xingbook.park.TO_STORE"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const/high16 v1, 0x1000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    iget-object v1, p0, Lcom/xingbook/xingbook/activity/r;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    invoke-virtual {v1, v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method public b(Lcom/xingbook/xingbook/b/a;)V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/xingbook/activity/r;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    invoke-static {v0, p1}, Lcom/xingbook/c/t;->a(Landroid/content/Context;Lcom/xingbook/b/n;)V

    return-void
.end method

.method public c(Lcom/xingbook/xingbook/b/a;)V
    .locals 5

    const/4 v4, 0x0

    if-nez p1, :cond_0

    :goto_0
    return-void

    :cond_0
    instance-of v0, p1, Lcom/xingbook/xingbook/b/d;

    if-eqz v0, :cond_3

    move-object v0, p1

    check-cast v0, Lcom/xingbook/xingbook/b/d;

    invoke-virtual {v0}, Lcom/xingbook/xingbook/b/d;->D()I

    move-result v0

    if-eqz v0, :cond_1

    invoke-static {}, Lcom/xingbook/c/n;->l()Lcom/xingbook/c/j;

    move-result-object v0

    sget-object v1, Lcom/xingbook/park/c/a;->i:[I

    invoke-virtual {v0, v1}, Lcom/xingbook/c/j;->a([I)Z

    move-result v0

    if-nez v0, :cond_1

    invoke-virtual {p1}, Lcom/xingbook/xingbook/b/a;->t()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/xingbook/c/a;->a(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    :cond_1
    new-instance v0, Lcom/xingbook/xingbook/c/b;

    iget-object v1, p0, Lcom/xingbook/xingbook/activity/r;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    iget-object v2, p0, Lcom/xingbook/xingbook/activity/r;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    iget-object v3, p0, Lcom/xingbook/xingbook/activity/r;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    invoke-static {v3}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->f(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/xingbook/c/d;

    move-result-object v3

    invoke-direct {v0, v1, p1, v2, v3}, Lcom/xingbook/xingbook/c/b;-><init>(Landroid/content/Context;Lcom/xingbook/xingbook/b/a;Lcom/xingbook/service/download/f;Lcom/xingbook/xingbook/c/d;)V

    check-cast p1, Lcom/xingbook/xingbook/b/d;

    invoke-virtual {p1}, Lcom/xingbook/xingbook/b/d;->D()I

    move-result v1

    invoke-virtual {v0, v4, v1}, Lcom/xingbook/xingbook/c/b;->a(II)V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/xingbook/xingbook/activity/r;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    invoke-static {v0, p1}, Lcom/xingbook/c/t;->a(Landroid/content/Context;Lcom/xingbook/b/n;)V

    goto :goto_0

    :cond_3
    new-instance v0, Lcom/xingbook/xingbook/c/b;

    iget-object v1, p0, Lcom/xingbook/xingbook/activity/r;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    iget-object v2, p0, Lcom/xingbook/xingbook/activity/r;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    iget-object v3, p0, Lcom/xingbook/xingbook/activity/r;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    invoke-static {v3}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->f(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)Lcom/xingbook/xingbook/c/d;

    move-result-object v3

    invoke-direct {v0, v1, p1, v2, v3}, Lcom/xingbook/xingbook/c/b;-><init>(Landroid/content/Context;Lcom/xingbook/xingbook/b/a;Lcom/xingbook/service/download/f;Lcom/xingbook/xingbook/c/d;)V

    invoke-virtual {v0, v4}, Lcom/xingbook/xingbook/c/b;->a(I)V

    goto :goto_0
.end method
